// Dynamic Proxy by Lukasz Kwiecinski, Poznan, 2004
// Author: grosee@wp.pl
// You may use this code without any prohibition.

using System;

namespace GURUCORE.Framework.Core.Proxy
{
	/// <summary>
	/// Thrown when dynamic proxy class cannot be created.
	/// </summary>
	[Serializable]
    [System.Diagnostics.DebuggerStepThrough()]
	public class DynamicProxyException
		: System.Exception
	{
		/// <summary>
		/// Creates this exception.
		/// </summary>
		/// <param name="message">Exception message.</param>
		/// <param name="innerException">Inner exception.</param>
		public DynamicProxyException(string message, Exception innerException)
			: base(message, innerException)
		{
		}

		/// <summary>
		/// Creates this exception.
		/// </summary>
		/// <param name="message">Exception message.</param>
		public DynamicProxyException(string message)
			: this(message, null)
		{
		}

		/// <summary>
		/// Creates this exception.
		/// </summary>
		public DynamicProxyException()
			: this(null, null)
		{
		}
	}
}
